﻿@using Hangerd.Mvc.Authentication;

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width,minimum-scale=1,user-scalable=no,maximum-scale=1,initial-scale=1">
	<title>dPet</title>
	<link href="http://resource.dfancy.cn/common/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

	<style type="text/css">
		* {
			font-family: '微软雅黑';
		}
	</style>
</head>
<body>
	<header>
		<nav role="navigation">
			<div class="navbar navbar-default">
				<div class="container">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>

						<a class="navbar-brand" href="/" title="dPet" rel="homepage">dPet</a>
					</div>
					<div class="navbar-collapse collapse navbar-responsive-collapse">
						<ul class="nav navbar-nav">
							<li id="li-HospitalList"><a href="@Url.Action("HospitalList", "Manage")">医院管理</a></li>
							<li id="li-StaffRoleList"><a href="@Url.Action("StaffRoleList", "Manage")">角色管理</a></li>
						</ul>

						@if (LoginHelper.IsLogin())
						{
							<ul class="nav navbar-nav navbar-right">
								<li class="menu-item menu-item-type-post_type menu-item-object-page">
									<p class="navbar-text">
										<span class="glyphicon glyphicon-user"></span>
										当前用户: @LoginHelper.GetUserId()
									</p>
								</li>
								<li class="menu-item menu-item-type-post_type menu-item-object-page">
									<a href="@Url.Action("SignOut", "Home")"><span class="glyphicon glyphicon-off"></span> 注 销</a>
								</li>
							</ul>
						}
					</div>
				</div>
			</div>
		</nav>
	</header>

	<div class="container">
		@RenderBody()
	</div>

	<footer class="clearfix">
		<div class="container">
			<hr>
			<div id="footer-wrapper">
				<div class="row">
					<div class="copyright text-center">
						&copy; Copyright 2014 <a href="mailto:010227leo@gmail.com" title="010227leo@gmail.com" rel="home">010227leo@gmail.com</a>
					</div>
				</div>
			</div>
		</div>
	</footer>

	<script src="http://resource.dfancy.cn/common/js/jquery-2.1.1.min.js" type="text/javascript"></script>
	<script src="http://resource.dfancy.cn/common/js/bootstrap.min.js" type="text/javascript"></script>

	@RenderSection("scripts", required: false)
</body>
</html>
